home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Desktop My Documents.xpl < prev    next >
Text File  |  2001-04-12  |  1KB  |  43 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Desktop\Icons\'My Documents' Options"
  5. "OSVERSION"="0001111"
  6. "NAME"="My Documents Change Context Menu"
  7. "VERSION"="2.03"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Allow changing path of My Documents"
  10. "DESCRIPTION 1"="By default, if you right-click the My Documents icon on your desktop and click Properties, the tab lets you change the path of this folder."
  11. "DESCRIPTION 2"="Uncheck box to disable this behavior."
  12. "AUTHOR"="Xteq Systems"
  13. "CONTACTURL"="http://www.xteq.com/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="Thanks to CptSiskoX for suggested plugin."
  16.  
  17.  
  18. sP="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisablePersonalDirChange" 'DW
  19. Sub Plugin_Initialize 
  20.   i=RegReadValue(sP)
  21.   if i<>1 then SetUIElement 1,true
  22. End Sub
  23.  
  24. Sub Plugin_CheckData(ElementIndex)
  25. End Sub
  26.  
  27. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  28.  b=GetUIElement(1)
  29.  if b=true then
  30.     if RegValueExists(sP) then 
  31.        Call RegDeleteValue(sP)
  32.     end if
  33.  else
  34.     Call RegWriteValue(sP,"1",2)
  35.  end if
  36. End Sub
  37.  
  38. Sub Plugin_Terminate 
  39. End Sub
  40.  
  41.  
  42.  
  43.